package com.hk.service.view;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.view.UserView;

public interface IUserView {
	
	/**
	 * 根据id 获取用户信息
	 * @param userId
	 * @return
	 */
	public UserView findById(long userId);
	
	/**
	 * 获取一个用户所有的下属用户
	 * @param userId
	 * @return
	 */
	public List<UserView> getAllSubUser(long userId,String userRealName, String userOrgName, int curPage, int pagSize);
	
	

	/**
	 * 获取总的条目数
	 * @param userId
	 * @return
	 */
	public Long  getTotalCount(long userId,String userRealName, String userOrgName);

	public Long countByFilter(HqlFilter hqlFilter);

	public List<UserView> findByFilter(HqlFilter hqlFilter);


	public List<UserView> findByFilter(HqlFilter hqlFilter, int pageNum,
									  int pageSize);
}
